import request from '@/utils/request'

export function getList(data) {
  return request({
    url: 'withdraw/bank_lists',
    method: 'get',
    params: data
  })
}

export function addBank(data) {
  return request({
    url: 'withdraw/add_bank',
    method: 'post',
    data: data
  })
}

export function editBank(data) {
  return request({
    url: 'withdraw/edit_bank',
    method: 'post',
    data: data
  })
}

export function deleteBank(data) {
    return request({
      url: 'withdraw/del_bank',
      method: 'post',
      data: data
    })
}

export function initWithdraw(data) {
  return request({
    url: 'withdraw/withdraw_page',
    method: 'get',
    params: data
  })
}

export function withdraw(data) {
  return request({
    url: 'withdraw/withdraw',
    method: 'post',
    data: data
  })
}
